const expressJoi = require('@escook/express-joi')
const express = require('express')
const router = express.Router()
const router_handle = require('../router_handler/user')
const { reg_schema } = require('../schema/user')

router.post('/reguser', expressJoi(reg_schema), router_handle.reguser)
router.post('/login', expressJoi(reg_schema), router_handle.login
)
module.exports = router